Adding new parameter $8 with the begin of a block to 'blockedtext' and 'autoblockedtext'.
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 31 Jul 2007 13:59:29 +0000 (13:59 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 31 Jul 2007 13:59:29 +0000 (13:59 +0000)
I think there is no need for new message name to not break existing localizations.
It was a request of the German OTRS team which handles a lot of block complains.

includes/OutputPage.php
languages/messages/MessagesEn.php

index 894134a..39d7131 100644 (file)
@@ -745,6 +745,7 @@ class OutputPage {
 
                $id = $wgUser->blockedBy();
                $reason = $wgUser->blockedFor();
+               $blockTimestamp = $wgLang->timeanddate( wfTimestamp( TS_MW, $wgUser->mBlock->mTimestamp ), true );
                $ip = wfGetIP();
 
                if ( is_numeric( $id ) ) {
@@ -784,8 +785,8 @@ class OutputPage {
                 * This could be a username, an ip range, or a single ip. */
                $intended = $wgUser->mBlock->mAddress;
 
-               $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry, $intended ) );
-               
+               $this->addWikiText( wfMsg( $msg, $link, $reason, $ip, $name, $blockid, $blockExpiry, $intended, $blockTimestamp ) );
+
                # Don't auto-return to special pages
                if( $return ) {
                        $return = $wgTitle->getNamespace() > -1 ? $wgTitle->getPrefixedText() : NULL;
index caf0c8a..290d700 100644 (file)
@@ -937,8 +937,9 @@ format. Please enter a well-formatted address or empty that field.',
 
 The block was made by $1. The reason given is ''$2''.
 
-Expiry of block: $6<br />
-Intended blockee: $7
+* Begin of block: $8
+* Expiry of block: $6
+* Intended blockee: $7
 
 You can contact $1 or another [[{{MediaWiki:grouppage-sysop}}|administrator]] to discuss the block.
 You cannot use the 'email this user' feature unless a valid email address is specified in your
@@ -949,7 +950,8 @@ The reason given is this:
 
 :\'\'$2\'\'
 
-Expiry of block: $6
+* Begin of block: $8
+* Expiry of block: $6
 
 You may contact $1 or one of the other
 [[{{MediaWiki:grouppage-sysop}}|administrators]] to discuss the block.